Skip to content

feat(pm-console): the repository's settings are written once, and the edge says where the laptop differs - #14172

Merged
dezren39 merged 2 commits into
mainfrom
claude/pm-settings
Nov 24, 2026
Merged

dezren39 merged 2 commits into
mainfrom
claude/pm-settings

Conversation

@dezren39

@dezren39 dezren39 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

First step of #14163. Nothing the Worker acts by changes.

Why

The Worker holds no settings of its own. It stores and acts by whatever configuration the laptop's console last reported: who may sign in, which repository and queue, where the queue's store answers (which is where the queue's token is sent), and which repositories are looked in for what needs the owner. Most of these are defaults in the console's code, so they are whatever the laptop's checkout had when its console started. That checkout is behind main (#13833), which is why the correction of the repositories' names in #14165 is deployed and not yet in effect.

What changed

  • One definition. The repository's settings (the repository, the queue, where its store answers and what its token is called, the Android package, the instruction label, the repositories looked in) are written once in pm-stack/console/src/settings.ts. The console uses them where its environment says nothing else, exactly as before, and the Worker's bundle now carries them.
  • The Worker says where the laptop differs. Its health answer has machineSettingsDiffer: the names of those settings in which the machine told it otherwise. Names only, never a value; null while no machine has said anything.

Why this first

The next step is the Worker acting by its own settings and not by what a machine tells. Whether any of them was set by hand on the laptop cannot be known from outside. If only the list of repositories differs, the switch changes only that; if something else does, it is known before anything is switched. The whole plan, in order, is in the design record (the section "Plan: the platform's settings are its own").

How it was checked

  • 471 tests pass (ten new for the settings, one for the health answer), type check, format check, --check.
  • The real Worker runtime: 48 checks pass, with a new one that the bundle as built agrees with a console running the same code (machineSettingsDiffer is null before the first report and [] after).
  • Eleven faults planted one at a time, all caught: the comparison inverted; lists compared by their beginning, or by length only; a list taken for a string; a name left out; one object handed to every caller; a fallback of the console's own, for a setting and for the list; an empty list said before any machine reported; never any difference said; values said and not names.

Not seen yet

What machineSettingsDiffer says in service. Expected: ["needsRepos"]. It is read once this is deployed and recorded on #14163.

https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF


Generated by Claude Code

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants